<?php

session_start();
    if(isset($_SESSION['usuario'])){
        $user = $_SESSION['usuario'];
        $_SESSION['usuario'] = $user;
    } else {
        header('Location: ../');
    }
    
    include_once '../Model/Execute.php';
    
    if(isset($_POST['data'])){
        $data = $_POST['data'];
        $val = explode(",", $data);
        nuevoEstadoOrden($val[0], $user,$val[1]);
    }
    
